package com.wwtech.epp.ui.activity.friend;

import android.os.Bundle;

import com.wwtech.epp.R;
import com.wwtech.epp.application.AppConfig;
import com.wwtech.epp.base.BaseActivity;
import com.wwtech.epp.ui.activity.friend.component.DaggerDeleteGroupMemberComponent;
import com.wwtech.epp.ui.activity.friend.contract.DeleteGroupMemberContract;
import com.wwtech.epp.ui.activity.friend.module.DeleteGroupMemberModule;
import com.wwtech.epp.ui.activity.friend.presenter.DeleteGroupMemberPresenter;

import javax.inject.Inject;

import butterknife.ButterKnife;

/**
 * @author hzp
 * @Package com.wwtech.epp.ui.activity.friend
 * @Description: $description
 * @date 2017/12/07 14:01:54
 */

public class DeleteGroupMemberActivity extends BaseActivity implements DeleteGroupMemberContract.View {

    @Inject
    DeleteGroupMemberPresenter mPresenter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initView() {
        setContentView(R.layout.activity_delete_group_member);
        ButterKnife.bind(this);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void setupActivityComponent() {
       DaggerDeleteGroupMemberComponent
               .builder()
               .appComponent(((AppConfig) getApplication()).getApplicationComponent())
               .deleteGroupMemberModule(new DeleteGroupMemberModule(this))
               .build()
               .inject(this);
    }
    @Override
    public void setPresenter(DeleteGroupMemberContract.DeleteGroupMemberContractPresenter presenter) {
        mPresenter = (DeleteGroupMemberPresenter) presenter;
    }

    @Override
    public void showProgressDialog() {
        progressDialog.show();
    }

    @Override
    public void closeProgressDialog() {
        progressDialog.hide();
    }

}